package com.hl.wuyeguanliIDEA.service.impl;

import com.hl.wuyeguanliIDEA.mapper.LeaveApplicationMapper;
import com.hl.wuyeguanliIDEA.pojo.LeaveApplication;
import com.hl.wuyeguanliIDEA.service.LeaveApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class LeaveApplicationServiceImpl implements LeaveApplicationService {
    @Autowired
    private LeaveApplicationMapper leaveApplicationMapper;
    @Override
    public int insert(LeaveApplication record) {
        return leaveApplicationMapper.insert(record);
    }

    @Override
    public List<LeaveApplication> select1(LeaveApplication l) {
        return leaveApplicationMapper.select1(l);
    }
    @Override
    public List<LeaveApplication> select2(LeaveApplication l) {
        return leaveApplicationMapper.select2(l);
    }

    @Override
    public int update1(LeaveApplication record) {
        return leaveApplicationMapper.update1(record);
    }

    @Override
    public int update2(LeaveApplication record) {
        return leaveApplicationMapper.update2(record);
    }

}
